import request from '@/utils/request'

/**
 * 获取仪表盘统计数据
 */
export const getStatistics = () => {
    return request({
        url: 'dashboard/getStatistics',
        method: 'get'
    })
}

/**
 * 获取最近操作日志
 */
export const getRecentLogs = (params) => {
    return request({
        url: 'dashboard/getRecentLogs',
        method: 'get',
        params
    })
}

/**
 * 获取用户增长趋势
 */
export const getUserGrowth = () => {
    return request({
        url: 'dashboard/getUserGrowth',
        method: 'get'
    })
}

/**
 * 获取系统信息
 */
export const getSystemInfo = () => {
    return request({
        url: 'dashboard/getSystemInfo',
        method: 'get'
    })
}

/**
 * 获取用户分布统计
 */
export const getUserDistribution = () => {
    return request({
        url: 'dashboard/getUserDistribution',
        method: 'get'
    })
}